<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>图书修改--后台管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" th:href="@{/static/layui/css/layui.css}" media="all"/>
    <style type="text/css">
        .layui-form-item .layui-inline {
            width: 33.333%;
            float: left;
            margin-right: 0;
        }

        @media (max-width: 1240px) {
            .layui-form-item .layui-inline {
                width: 100%;
                float: none;
            }
        }

        .layui-form-item .role-box {
            position: relative;
        }

        .layui-form-item .role-box .jq-role-inline {
            height: 100%;
            overflow: auto;
        }

    </style>
</head>
<body class="childrenBody">
<form class="layui-form" style="width:80%;">
    <input class="layui-hide" name="id" th:value="${waveDevice.id}"/>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">设备名称</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" name="deviceName" lay-verify="required" placeholder="请输入设备名称"
                       th:value="${waveDevice.deviceName}">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">IP</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" name="deviceIp" placeholder="请输入IP"
                       th:value="${waveDevice.deviceIp}">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">SN码</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" name="deviceSn" placeholder="请输入SN码"
                       th:value="${waveDevice.deviceSn}">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">设备类型</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" name="deviceType" placeholder="请输入设备类型"
                       th:value="${waveDevice.deviceType}">
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">生产时间</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" id="deviceProtime" name="deviceProtime" placeholder="yyyy-MM-dd HH:mm:ss"
                       th:value="${#dates.format(waveDevice.deviceProtime, 'yyyy-MM-dd HH:mm:ss')}">
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">安装时间</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" id="deviceInstalltime" name="deviceInstalltime" placeholder="yyyy-MM-dd HH:mm:ss"
                       th:value="${#dates.format(waveDevice.deviceInstalltime, 'yyyy-MM-dd HH:mm:ss')}">
            </div>
        </div>


    </div>


    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="" lay-filter="editDevice">我要修改</button>
            <button class="layui-btn layui-btn-primary">我不改了</button>
        </div>
    </div>
</form>
<script type="text/javascript" th:src="@{/static/layui/layui.js}"></script>
<script type="text/javascript" th:src="@{/static/device/edit.js}"></script>
</body>
</html>